package org.xinghai.sql.main.generator.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.xinghai.sql.main.dto.CreateTableDto;
import org.xinghai.sql.main.generator.domain.ColumnElements;
import org.xinghai.sql.main.generator.domain.DatabaseTables;
import org.xinghai.sql.main.generator.domain.TableColumns;

import java.util.List;

/**
* @author lijia
* &#064;description  针对表【database_tables】的数据库操作Service
* &#064;createDate  2025-07-28 11:43:08
 */
public interface DatabaseTablesService extends IService<DatabaseTables> {

    void createTable(CreateTableDto createTableDto);

    List<TableColumns> getTableColumnsByTableId(Integer tableId);

    Integer getTableIdByTableName(String tableName);

    List<DatabaseTables> getTableByDatabaseName(String databaseName);
//在指定的数据库中查询表id
    Integer getTableIdByTableNameFromDatabaseName(String tableName, String databaseName);
}
